﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CapaEntidades;
namespace SisHotel
{
    public partial class frmMaestra : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!Page.IsPostBack)
            {
                if (Session["empleado"] != null)
                {
                    entEmpleado empleado = (entEmpleado)Session["empleado"];
                    lblUsuario.Text = empleado.Usuario;
                }
                else
                {
                    Response.Redirect("index.aspx");
                }
            }
        }
    }
}